<?php 
require_once dirname(__FILE__) . '/../../common.inc.php';
require_once dirname(__FILE__) . "/Plugin.class.php";
    $cond_vals = new stdClass();
    $cond_vals->c = 't.instance_id = :v1';
    $cond_vals->v = array(':v1' => $_POST['instance']);
    $result = DbUtils::get(DbUtils::createPdoInst(), 'pz_tnfp_pue_config', $cond_vals, NULL, NULL, NULL, NULL, NULL)->d;
    $id = $result[0]->id;
    
echo $id;
?>